ImageStorage.resize

Resizes the data store.

Will not scale and $(U may) lose data in the process.

  1. bool resize(size_t newWidth, size_t newHeight)
    interface ImageStorage(Color)
    @safe
    bool
    resize
    (
    size_t newWidth
    ,
    size_t newHeight
    )
    if (
    isColor!Color
    )
  2. bool resize(size_t newWidth, size_t newHeight)
  3. size_t width [@property getter]
  4. size_t width [@property getter]

Parameters

newWidth size_t

The width the data store will become

newHeight size_t

The height the data store will become

Return Value

Type: bool

If the data store was successfully resized

Meta